package com.xixi.example.provider;

import com.xixi.example.common.model.User;
import com.xixi.example.common.service.UserService;

/**
 * @author: zxh
 * @date: 2024/8/20 22:56
 * @description: 用户服务实现类
 */
public class UserServiceImpl implements UserService {
	@Override
	public User getUser(User user) {
		String username = user != null ? user.getName() : "用户为null";
		System.out.println("用户名：" + username);
		return user;
	}

	@Override
	public User getOtherUser() {
		User user = new User();
		user.setName("李四");
		return user;
	}
}
